package com.shop.user.service;

//import com.shop.user.entity.User;

import com.base.common.entity.User;

/**
 * @ClassName UserService
 * @Description TODO
 * @Author wesker
 * @Date 6/6/2019 3:48 PM
 * @Version 1.0
 **/
public interface UserService extends BaseService<User> {

    // 检查前端验证码与redis里的code是否一致
    Boolean verifyCode(String phone, String code);

    // 发送手机短信获取验证码
    void sendCode(String phone);

    // 账号密码登录
    User userLogin(String username, String password);

    // 登录用户修改信息
    boolean updateUserInfo(User user);

}
